define(function (require, exports, module) {
	WebPDF.TEXTANNOT_PLUGIN_NAME = "TextAnnotPlugin";
	
	var TextAnnotToolHandler = require("./TextAnnotToolHandler.js");
	var TextAnnotHandler = require("./TextAnnotHandler.js");
	require("./AnnotHandleManager.js");
	WebPDF.TextAnnotPlugin = function (readerApp,annotPlugin) {
        var    _readerApp = readerApp,
        	   _annotPlugin = annotPlugin,
              //_language = _readerApp.getLanguage(),
        	  _annotHandlerArray = [],
              _self = this;

        this.getPluginName = function () {
            return WebPDF.TEXTANNOT_PLUGIN_NAME;
        };
        this.onRegister = function () {
           
        };
        this.init = function () {
        	
        };
        this.unload = function () {
        };

        this.getReaderApp = function () {
            return _readerApp;
        };
        
       
    };

    exports.createPlugin = function (pReaderApp) {
        var annotPlugin = pReaderApp.getPluginByName(WebPDF.BASEANNOT_PLUGIN_NAME);
        var pTextAnnotPlugin = new WebPDF.TextAnnotPlugin(pReaderApp,annotPlugin);
        return pTextAnnotPlugin;
    };
	
});